﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ForumServer.Forum
{
    public class Moderator : User
    {
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="tName">username</param>
        /// <param name="tPass">password</param>
        /// <param name="tMail">email</param>
        /// <param name="tNumber">phone number</param>
        /// <param name="tFirstName">first name</param>
        /// <param name="tLastName">last name</param>
        public Moderator(string tName, string tPass, string tMail, string tNumber, string tFirstName, string tLastName)
        {
            _username = tName;
            _password = tPass;
            _eMail = tMail;
            _phoneNumber = tNumber;
            _firstName = tFirstName;
            _lastName = tLastName;
        }

        /// <summary>
        /// remove Thread from list
        /// </summary>
        /// <param name="tThread"></param>
        public void removeThread(Thread tThread){
            tThread.Creator.ThreadsPosted.Remove(tThread);//can this remove his own threads???
        }
    }
}
